﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Primitives;

namespace YAPACS.RisServer.Interface.Technician
{
    /// <summary>
    /// 检查中的Study匹配
    /// </summary>
    public interface IStudyMatchExam
    {
        /// <summary>
        /// 获取为分配的Study
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        [HttpPost]
        public Task<ResultDto> GetUnMatch(int pageIndex,int pageSize);


        /// <summary>
        /// 搜索可供匹配的检查
        /// (搜索条件根据高级搜索组件进行调整)
        /// </summary>
        /// <param name="pageIndex">分页Index</param>
        /// <param name="pazeSize">每页数据量</param>
        /// <param name="startTime">起始时间</param>
        /// <param name="endTime">结束时间</param>
        /// <param name="patientId">患者ID</param>
        /// <param name="examId">检查ID</param>
        /// <returns></returns>
        [HttpPost]
        public Task<ResultDto> GetExams(int pageIndex,int pazeSize,DateTime startTime ,DateTime endTime,string patientId="",string examId="");



        /// <summary>
        /// 执行匹配
        /// </summary>
        /// <param name="studyIds"></param>
        /// <param name="examId"></param>
        /// <returns></returns>
        [HttpPost]
        public Task<ResultDto> ExcuteMatch(string[] studyIds, string examId);


    }
}
